package com.eagle.rate.entity;
// default package

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Rate entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "rate", catalog = "traderate")
public class Rate implements java.io.Serializable {

	// Fields

	private Integer id;
	private String tid;
	private String oid;
	private Integer userId;
	private String nick;
	private String result;
	private Timestamp created;
	private String itemTitle;
	private Double itemPrice;
	private String content;
	private String sellerName;
	private String sellerMobile;
	private Timestamp motifyTime;
	private Timestamp lastUpdateTime;

	// Constructors

	/** default constructor */
	public Rate() {
	}

	/** minimal constructor */
	public Rate(Integer userId) {
		this.userId = userId;
	}

	/** full constructor */
	public Rate(String tid, String oid, Integer userId, String nick,
			String result, Timestamp created, String itemTitle,
			Double itemPrice, String content, String sellerName,
			String sellerMobile, Timestamp motifyTime, Timestamp lastUpdateTime) {
		this.tid = tid;
		this.oid = oid;
		this.userId = userId;
		this.nick = nick;
		this.result = result;
		this.created = created;
		this.itemTitle = itemTitle;
		this.itemPrice = itemPrice;
		this.content = content;
		this.sellerName = sellerName;
		this.sellerMobile = sellerMobile;
		this.motifyTime = motifyTime;
		this.lastUpdateTime = lastUpdateTime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "tid", length = 15)
	public String getTid() {
		return this.tid;
	}

	public void setTid(String tid) {
		this.tid = tid;
	}

	@Column(name = "oid", length = 15)
	public String getOid() {
		return this.oid;
	}

	public void setOid(String oid) {
		this.oid = oid;
	}

	@Column(name = "user_id", nullable = false)
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "nick", length = 30)
	public String getNick() {
		return this.nick;
	}

	public void setNick(String nick) {
		this.nick = nick;
	}

	@Column(name = "result", length = 15)
	public String getResult() {
		return this.result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	@Column(name = "created", length = 19)
	public Timestamp getCreated() {
		return this.created;
	}

	public void setCreated(Timestamp created) {
		this.created = created;
	}

	@Column(name = "item_title", length = 100)
	public String getItemTitle() {
		return this.itemTitle;
	}

	public void setItemTitle(String itemTitle) {
		this.itemTitle = itemTitle;
	}

	@Column(name = "item_price", precision = 7)
	public Double getItemPrice() {
		return this.itemPrice;
	}

	public void setItemPrice(Double itemPrice) {
		this.itemPrice = itemPrice;
	}

	@Column(name = "content", length = 500)
	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Column(name = "seller_name", length = 15)
	public String getSellerName() {
		return this.sellerName;
	}

	public void setSellerName(String sellerName) {
		this.sellerName = sellerName;
	}

	@Column(name = "seller_mobile", length = 15)
	public String getSellerMobile() {
		return this.sellerMobile;
	}

	public void setSellerMobile(String sellerMobile) {
		this.sellerMobile = sellerMobile;
	}

	@Column(name = "motify_time", length = 19)
	public Timestamp getMotifyTime() {
		return this.motifyTime;
	}

	public void setMotifyTime(Timestamp motifyTime) {
		this.motifyTime = motifyTime;
	}

	@Column(name = "last_update_time", length = 19)
	public Timestamp getLastUpdateTime() {
		return this.lastUpdateTime;
	}

	public void setLastUpdateTime(Timestamp lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

}